package com.qf.dao.impl;

import com.qf.dao.UsersDao;
import com.qf.bean.Task;

import java.util.ArrayList;
import java.util.List;

/**
 * 2019/11/29
 * Administrator
 * quartz1129
 * 面向对象面向君  不负代码不负卿
 */
public class UsersDaoImpl implements UsersDao {
    public List<Task> findTaskByName(String name) {
        ArrayList list = new ArrayList();
        if(name.equals("李四")){
            list.add(new Task("李四去敲代码"));
        }else if(name.equals("王五")){
            list.add(new Task("王五去上课"));
        }else{
            list.add(new Task("在家睡觉"));
        }
        return list;
    }
}
